home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / bash / bash_108 / bash-108.zoo / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-12  |  3.5 KB  |  117 lines

  1. /* config.h -- Configuration file for bash. */
  2.  
  3. /* Copyright (C) 1987,1991 Free Software Foundation, Inc.
  4.  
  5.    This file is part of GNU Bash, the Bourne Again SHell.
  6.  
  7.    Bash is free software; you can redistribute it and/or modify it
  8.    under the terms of the GNU General Public License as published by
  9.    the Free Software Foundation; either version 1, or (at your option)
  10.    any later version.
  11.  
  12.    Bash is distributed in the hope that it will be useful, but WITHOUT
  13.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  14.    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  15.    License for more details.
  16.  
  17.    You should have received a copy of the GNU General Public License
  18.    along with Bash; see the file COPYING.  If not, write to the Free
  19.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21. #ifndef _CONFIG_
  22. #define _CONFIG_
  23.  
  24. #ifndef VOID
  25. #ifdef NO_VOID
  26. #define VOID char
  27. #else
  28. #define VOID void
  29. #endif
  30. #endif
  31.  
  32. #if defined (__GNUC__)
  33. #  if !defined (HAVE_ALLOCA)
  34. #    define HAVE_ALLOCA
  35. #  endif /* HAVE_ALLOCA */
  36. #  define alloca __builtin_alloca
  37. #else
  38. #  if defined (HAVE_ALLOCA_H)
  39. #    if !defined (HAVE_ALLOCA)
  40. #      define (HAVE_ALLOCA)
  41. #    endif /* HAVE_ALLOCA */
  42. #    include <alloca.h>
  43. #  endif /* HAVE_ALLOCA_H */
  44. #endif /* __GNUC__ */
  45.  
  46. #if defined (HPUX) || (UNIXPC) || defined (Xenix)
  47. #  if !defined (USG)
  48. #    define USG
  49. #  endif
  50. #endif
  51.  
  52. /* Make the change from SYSV to USG painless.
  53.    USG stands for Unix Systems Group.  I don't know what they have to
  54.    do with systems that are similar to System V. */
  55. #if defined (SYSV) && !defined (USG)
  56. #  define USG
  57. #endif
  58.  
  59. #if defined (HAVE_UNISTD_H) && !defined (BUILDING_MAKEFILE)
  60. #include <unistd.h>
  61. #endif
  62.  
  63. /* Define NO_DUP2 if your OS doesn't have a dup2 () call.  We set this for
  64.    Ultrix because that OS doesn't do the right thing with the close on
  65.    exec flag for the dup'ed file descriptor. */
  66. #if defined (hpux) || defined (Ultrix)
  67. #define NO_DUP2
  68. #endif /* hpux || Ultrix */
  69.  
  70. /* Define JOB_CONTROL if your operating system supports
  71.    BSD-like job control. */
  72. /* #define JOB_CONTROL */
  73.  
  74. /* Note that vanilla System V machines don't support BSD job control, 
  75.    although some do support Posix job control. */
  76. #if defined (USG) && !defined (_POSIX_JOB_CONTROL)
  77. #undef JOB_CONTROL
  78. #endif /* USG */
  79.  
  80. /* Define ALIAS if you want the alias features. */
  81. #define ALIAS
  82.  
  83. /* Define PUSHD_AND_POPD if you want those commands to be compiled in.
  84.    (Also the `dirs' commands.) */
  85. #define PUSHD_AND_POPD
  86.  
  87. /* Define READLINE to get the nifty/glitzy editing features.
  88.    This is on by default.  You can turn it off interactively
  89.    with the -nolineediting flag. */
  90. #define READLINE
  91.  
  92. /* If READLINE is defined, right now we assume that you have the full
  93.    source code.  If you simply have the library and header files installed,
  94.    then undefine HAVE_READLINE_SOURCE. */
  95. #if defined (READLINE)
  96. #  define HAVE_READLINE_SOURCE
  97. #endif /* READLINE */
  98.  
  99. /* The default value of the PATH variable. */
  100. #define DEFAULT_PATH_VALUE \
  101.     ":/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/etc"
  102.  
  103. /* Define V9_ECHO if you want to give the echo builtin backslash-escape
  104.    interpretation, in the style of the Bell Labs 9th Edition version of
  105.    echo. */
  106. #define V9_ECHO
  107.  
  108. /* Defined CONTINUE_AFTER_KILL_ERROR if you want the kill command to
  109.    continue processing arguments after one of them fails. */
  110. #define CONTINUE_AFTER_KILL_ERROR
  111.  
  112. /* Define BREAK_COMPLAINS if you want the incompatible, but useful
  113.    error messages about `break' and `continue' out of context. */
  114. #define BREAK_COMPLAINS
  115.  
  116. #endif    /* _CONFIG_ */
  117.